package com.cky.forum.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
@Data
public class User {
    private Long id;

    private String username;
    @JsonIgnore
    private String password;

    private String nickname;

    private String phoneNum;

    private String email;

    private Byte gender;
    @JsonIgnore
    private String salt;
    @JsonInclude(JsonInclude.Include.ALWAYS)//无论任何情况都参与json序列化
    private String avatarUrl;

    private Integer articleCount;

    private Byte isAdmin;

    private String remark;

    private Byte state;
    @JsonIgnore
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

}